import request from "@/utils/request";

/**
 * @description: 不良品分析
 * @return {*}
 */
export function getAdverseAnalysis(data) {
  return request({
    url: "/qualityDashboard/adverseAnalysis",
    method: "get",
    params: data,
  });
}

/**
 * @description: 生产入库合格率
 * @return {*}
 */
export function getPWQR() {
  return request({
    url: "/qualityDashboard/pwqr",
    method: "get",
  });
}

/**
 * @description: 近14日不良品曲线图
 * @return {*}
 */
export function getDefectiveCurve() {
  return request({
    url: "/qualityDashboard/DefectiveCurve",
    method: "get",
  });
}
